JBoss JSF Attempt
dennishopper Nov 21, 2010 5:14 AMI'm trying to follow this tutorial: http://www.vogella.de/articles/JavaServerFaces/article.html#jsf
So I'm struggling to grasp what I'm doing wrong. I have three (5.01, 5.10 and 6.00) versions of JBoss AS on my computer. I've got my JBOSS_HOME pointed at my 5.10 location and my Eclipse settings should (emphasis) be pointing to it as well. The deal is I'm not getting the WAR file kicked out to the deploy location of the 5.10 server (default subfolder).
Edit: restarted Eclipse and now builds and deploys the WAR out to the JBoss server folder. However now I get this:
<CODE>
20:39:34,650 ERROR [ProfileDeployAction] Failed to add deployment: first.war
org.jboss.deployers.spi.DeploymentException: Error determining structure: first.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:248)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:626)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:689)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.applyMetadataPaths(AbstractStructureDeployer.java:481)
at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.createContext(AbstractStructureDeployer.java:455)
at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:204)
... 25 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:484)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
... 38 more
20:39:40,735 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@77572026{vfsfile:/C:/JBoss/510_GA/server/default/deploy/profileservice-secured.jar/}
20:39:40,736 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@77572026{vfsfile:/C:/JBoss/510_GA/server/default/deploy/profileservice-secured.jar/}
20:39:40,736 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@77572026{vfsfile:/C:/JBoss/510_GA/server/default/deploy/profileservice-secured.jar/}
20:39:40,736 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@77572026{vfsfile:/C:/JBoss/510_GA/server/default/deploy/profileservice-secured.jar/}
20:39:42,867 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
20:39:42,947 INFO [MailService] Mail Service bound to java:/Mail
20:39:44,781 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.
20:39:44,798 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
20:39:44,862 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
20:39:44,893 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
20:39:44,893 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
20:39:45,094 INFO [TransactionManagerService] Initializing recovery manager
20:39:45,184 INFO [TransactionManagerService] Recovery manager configured
20:39:45,184 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
20:39:45,200 INFO [TransactionManagerService] Starting transaction recovery manager
20:39:45,532 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Resource Kits\Tools;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_21\bin;
20:39:45,585 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
20:39:45,598 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
20:39:45,615 INFO [StandardService] Starting service jboss.web
20:39:45,617 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
20:39:45,646 INFO [Catalina] Server startup in 48 ms
20:39:45,661 INFO [TomcatDeployment] deploy, ctxPath=/invoker
20:39:46,045 INFO [TomcatDeployment] deploy, ctxPath=/web-console
20:39:46,287 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
20:39:46,357 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBoss/510_GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
20:39:46,371 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBoss/510_GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
20:39:46,390 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBoss/510_GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
20:39:46,405 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBoss/510_GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
20:39:46,422 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBoss/510_GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
20:39:46,477 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
20:39:46,494 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
20:39:46,496 INFO [RAMJobStore] RAMJobStore initialized.
20:39:46,496 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
20:39:46,496 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
20:39:46,496 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
20:39:46,818 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
20:39:47,125 INFO [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
20:39:47,180 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
20:39:47,184 INFO [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
20:39:47,184 INFO [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
20:39:47,214 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
20:39:47,214 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@688a142 started
20:39:47,215 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
20:39:47,215 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@deb8755 started
20:39:47,216 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
20:39:47,216 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@6a46661e started
20:39:47,217 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
20:39:47,280 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
20:39:47,546 INFO [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar
20:39:47,550 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
20:39:47,550 INFO [JBossASKernel] with dependencies:
20:39:47,550 INFO [JBossASKernel] and demands:
20:39:47,550 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
20:39:47,550 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
20:39:47,550 INFO [JBossASKernel] and supplies:
20:39:47,550 INFO [JBossASKernel] Class:org.jboss.profileservice.spi.ProfileService
20:39:47,550 INFO [JBossASKernel] jndi:SecureProfileService/remote
20:39:47,550 INFO [JBossASKernel] jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
20:39:47,550 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar
20:39:47,551 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
20:39:47,551 INFO [JBossASKernel] with dependencies:
20:39:47,551 INFO [JBossASKernel] and demands:
20:39:47,551 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
20:39:47,551 INFO [JBossASKernel] and supplies:
20:39:47,551 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
20:39:47,551 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
20:39:47,551 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote
20:39:47,551 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar
20:39:47,552 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
20:39:47,552 INFO [JBossASKernel] with dependencies:
20:39:47,552 INFO [JBossASKernel] and demands:
20:39:47,552 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
20:39:47,552 INFO [JBossASKernel] and supplies:
20:39:47,552 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
20:39:47,552 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.ManagementView
20:39:47,552 INFO [JBossASKernel] jndi:SecureManagementView/remote
20:39:47,552 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar
20:39:47,557 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@21a52ed3{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
20:39:47,558 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@71ebd825{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
20:39:47,558 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@3be9029c{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
20:39:47,741 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
20:39:47,749 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager
20:39:47,790 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface
20:39:47,826 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
20:39:47,826 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
20:39:47,833 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
SecureManagementView/remote - EJB3.x Default Remote Business Interface
SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface
20:39:47,857 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
20:39:47,858 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
20:39:47,864 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
SecureProfileService/remote - EJB3.x Default Remote Business Interface
SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
20:39:48,012 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
20:39:48,143 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
20:39:49,737 INFO [TomcatDeployment] deploy, ctxPath=/
20:39:49,785 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
20:39:49,837 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS MISSING DEPLOYERS: Name
vfszip:/C:/JBoss/510_GA/server/default/deploy/first.war/
20:39:49,845 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
20:39:49,869 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
20:39:49,883 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 25s:48ms
</CODE>
So, something about the zip process (there's no zip file in the server/default/deploy folder just the WAR) failing and a bunch of other stuff I'm not sure about. I'm a newb so trying and aim your responses appropriately. Thanks.