1 Reply Latest reply on Mar 15, 2009 5:57 PM by Andreas Bauer

    Can't deploy EAR on JBoss 5.0.1 (Mac OS)

    Andreas Bauer Newbie

      Hi,

      I've got an EJB3 application and a web client bundled in an EAR.
      When I try to deploy the EAR on JBoss 5.0.1 on Mac OS, I get the error below.
      Further information: I use eclipse 3.4 to deploy. I configure JBoss to run with a 1.6.0 JRE and compiled to project with Java 1.5.0.

      14:35:31,925 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      14:35:31,927 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
      14:35:31,927 INFO [ServerImpl] Bootstrap URL: null
      14:35:31,927 INFO [ServerImpl] Home Dir: /Applications/jboss-5.0.1.GA
      14:35:31,927 INFO [ServerImpl] Home URL: file:/Applications/jboss-5.0.1.GA/
      14:35:31,927 INFO [ServerImpl] Library URL: file:/Applications/jboss-5.0.1.GA/lib/
      14:35:31,928 INFO [ServerImpl] Patch URL: null
      14:35:31,928 INFO [ServerImpl] Common Base URL: file:/Applications/jboss-5.0.1.GA/common/
      14:35:31,929 INFO [ServerImpl] Common Library URL: file:/Applications/jboss-5.0.1.GA/common/lib/
      14:35:31,929 INFO [ServerImpl] Server Name: default
      14:35:31,929 INFO [ServerImpl] Server Base Dir: /Applications/jboss-5.0.1.GA/server
      14:35:31,929 INFO [ServerImpl] Server Base URL: file:/Applications/jboss-5.0.1.GA/server/
      14:35:31,930 INFO [ServerImpl] Server Config URL: file:/Applications/jboss-5.0.1.GA/server/default/conf/
      14:35:31,930 INFO [ServerImpl] Server Home Dir: /Applications/jboss-5.0.1.GA/server/default
      14:35:31,930 INFO [ServerImpl] Server Home URL: file:/Applications/jboss-5.0.1.GA/server/default/
      14:35:31,930 INFO [ServerImpl] Server Data Dir: /Applications/jboss-5.0.1.GA/server/default/data
      14:35:31,930 INFO [ServerImpl] Server Library URL: file:/Applications/jboss-5.0.1.GA/server/default/lib/
      14:35:31,931 INFO [ServerImpl] Server Log Dir: /Applications/jboss-5.0.1.GA/server/default/log
      14:35:31,931 INFO [ServerImpl] Server Native Dir: /Applications/jboss-5.0.1.GA/server/default/tmp/native
      14:35:31,931 INFO [ServerImpl] Server Temp Dir: /Applications/jboss-5.0.1.GA/server/default/tmp
      14:35:31,931 INFO [ServerImpl] Server Temp Deploy Dir: /Applications/jboss-5.0.1.GA/server/default/tmp/deploy
      14:35:32,584 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Applications/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
      14:35:33,083 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
      14:35:33,085 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
      14:35:33,397 INFO [CopyMechanism] VFS temp dir: /Applications/jboss-5.0.1.GA/server/default/tmp
      14:35:33,398 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      14:35:34,681 INFO [ServerInfo] Java version: 1.6.0_07,Apple Inc.
      14:35:34,681 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
      14:35:34,681 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57,Apple Inc.
      14:35:34,681 INFO [ServerInfo] OS-System: Mac OS X 10.5.6,x86_64
      14:35:34,710 INFO [JMXKernel] Legacy JMX core initialized
      14:35:37,207 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@177fcdf1(root=/Applications/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
      14:35:37,209 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@177fcdf1(root=/Applications/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
      14:35:37,209 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@75c859c7{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
      14:35:38,888 INFO [WebService] Using RMI server codebase: http://localhost:8083/
      14:35:49,133 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      14:35:49,134 INFO [NativeServerConfig] 3.0.5.GA
      14:35:58,089 ERROR [AbstractKernelController] Error installing to ClassLoader: name=vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/Twitter.ear/ state=Describe mode=Manual requiredState=ClassLoader
      org.jboss.deployers.spi.DeploymentException: Error creating classloader for vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/Twitter.ear/
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:576)
       at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.createClassLoader(AbstractDeploymentUnit.java:159)
       at org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer.deploy(AbstractClassLoaderDeployer.java:53)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       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:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:637)
      Caused by: java.lang.Error: Error visiting FileHandler@1024749421[path=Twitter.ear/TwitterPoCEJB.jar context=file:/Applications/jboss-5.0.1.GA/server/default/deploy/ real=file:/Applications/jboss-5.0.1.GA/server/default/deploy/Twitter.ear/TwitterPoCEJB.jar/]
       at org.jboss.classloading.plugins.vfs.PackageVisitor.determineAllPackages(PackageVisitor.java:98)
       at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determineCapabilities(VFSDeploymentClassLoaderPolicyModule.java:108)
       at org.jboss.classloading.spi.dependency.Module.getCapabilities(Module.java:654)
       at org.jboss.classloading.spi.dependency.Module.determinePackageNames(Module.java:713)
       at org.jboss.classloading.spi.dependency.Module.getPackageNames(Module.java:698)
       at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determinePolicy(VFSDeploymentClassLoaderPolicyModule.java:129)
       at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.determinePolicy(VFSDeploymentClassLoaderPolicyModule.java:48)
       at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.getPolicy(ClassLoaderPolicyModule.java:195)
       at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.getPolicy(VFSDeploymentClassLoaderPolicyModule.java:122)
       at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.getPolicy(VFSDeploymentClassLoaderPolicyModule.java:48)
       at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:131)
       at org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer.createClassLoader(AbstractLevelClassLoaderSystemDeployer.java:120)
       at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:562)
       ... 21 more
      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:610)
       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:757)
       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChildren(ZipEntryContext.java:829)
       at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChildren(ZipEntryHandler.java:159)
       at org.jboss.virtual.plugins.context.DelegatingHandler.getChildren(DelegatingHandler.java:121)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.getChildren(AbstractVFSContext.java:211)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:328)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:298)
       at org.jboss.virtual.VFS.visit(VFS.java:433)
       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:437)
       at org.jboss.virtual.VirtualFile.getChildren(VirtualFile.java:386)
       at org.jboss.virtual.VirtualFile.getChildren(VirtualFile.java:367)
       at org.jboss.classloading.plugins.vfs.PackageVisitor.visit(PackageVisitor.java:200)
       at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:353)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:298)
       at org.jboss.virtual.VFS.visit(VFS.java:433)
       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:437)
       at org.jboss.classloading.plugins.vfs.PackageVisitor.determineAllPackages(PackageVisitor.java:94)
       ... 33 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>(ZipFile.java:114)
       at java.util.zip.ZipFile.<init>(ZipFile.java:131)
       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:470)
       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:603)
       ... 51 more
      14:36:01,791 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1240748155{vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/TwitterEJB.jar/}
      14:36:01,803 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1240748155{vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/TwitterEJB.jar/}
      14:36:01,803 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1240748155{vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/TwitterEJB.jar/}
      14:36:04,273 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://localhost/jndi/rmi://localhost:1090/jmxconnector
      14:36:04,455 INFO [MailService] Mail Service bound to java:/Mail
      14:36:07,034 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.
      14:36:07,060 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
      14:36:07,372 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      14:36:07,372 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      14:36:07,647 INFO [TransactionManagerService] Initializing recovery manager
      14:36:07,783 INFO [TransactionManagerService] Recovery manager configured
      14:36:07,783 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      14:36:07,816 INFO [TransactionManagerService] Starting transaction recovery manager
      14:36:08,402 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
      14:36:08,403 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
      14:36:08,403 INFO [StandardService] Starting service jboss.web
      14:36:08,429 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
      14:36:08,484 INFO [Catalina] Server startup in 193 ms
      14:36:08,514 INFO [TomcatDeployment] deploy, ctxPath=/web-console
      14:36:10,185 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
      14:36:10,231 INFO [TomcatDeployment] deploy, ctxPath=/invoker
      14:36:10,405 INFO [RARDeployment] Required license terms exist, view vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
      14:36:10,427 INFO [RARDeployment] Required license terms exist, view vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
      14:36:10,455 INFO [RARDeployment] Required license terms exist, view vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
      14:36:10,501 INFO [RARDeployment] Required license terms exist, view vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
      14:36:10,534 INFO [RARDeployment] Required license terms exist, view vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
      14:36:10,688 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      14:36:10,743 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      14:36:10,746 INFO [RAMJobStore] RAMJobStore initialized.
      14:36:10,746 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      14:36:10,746 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      14:36:10,747 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      14:36:11,493 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      14:36:13,106 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
      14:36:13,316 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
      14:36:13,316 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@5b39d5e2 started
      14:36:13,334 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      14:36:13,348 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
      14:36:13,348 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@6d28fe8 started
      14:36:13,349 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
      14:36:13,349 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
      14:36:13,350 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
      14:36:13,350 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@30ce33ec started
      14:36:13,352 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      14:36:13,632 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      14:36:13,650 INFO [TomcatDeployment] deploy, ctxPath=/
      14:36:13,792 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
      14:36:13,941 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      DEPLOYMENTS IN ERROR:
       Deployment "vfsfile:/Applications/jboss-5.0.1.GA/server/default/deploy/Twitter.ear/" is in error due to the following reason(s): java.util.zip.ZipException: error in opening zip file
      
      14:36:13,953 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
      14:36:13,980 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
      14:36:13,996 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 42s:63ms
      


      Any hints? I'm stuck with this already for quite a while and I want to continue developing.

      Thanks in advance!

      Best regards,

      Andreas

        • 1. Re: Can't deploy EAR on JBoss 5.0.1 (Mac OS)
          Andreas Bauer Newbie

          I deployed the two projects (web client war file and ejb jar file), which form the EAR project, separatly. The war works, but the ejb produced the same error.

          When I look into the deploy directory, I see that the two files (.war and .jar) are regular directories. Is this correct or the reason for my problem. And if this is the problem, how can I solve it? The war and the jar files are created by eclipse (with jboss tools 3.0.0.CR2-R200901280154)