[jboss-jira] [JBoss JIRA] (AS7-5037) Issue while deploying EJB 3.1 with JBoss AS 7.2.0 Alpha1
Frank Langelage (JIRA)
jira-events at lists.jboss.org
Wed Jun 20 16:28:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-5037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702566#comment-12702566 ]
Frank Langelage commented on AS7-5037:
--------------------------------------
I get a different error:
22:20:27,145 INFO [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "startup-bean-3.0.0-SNAPSHOT.jar"
22:20:27,155 ERROR [org.jboss.msc.service.fail#startFailed] MSC00001: Failed to start service jboss.deployment.unit."startup-bean-3.0.0-SNAPSHOT.jar".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."startup-bean-3.0.0-SNAPSHOT.jar".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "startup-bean-3.0.0-SNAPSHOT.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018741: Failed to get manifest for deployment "/content/startup-bean-3.0.0-SNAPSHOT.jar"
at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.deploy(ManifestAttachmentProcessor.java:74) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
... 5 more
Caused by: java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:410) [rt.jar:1.7.0_05]
at java.util.jar.Manifest.read(Manifest.java:199) [rt.jar:1.7.0_05]
at java.util.jar.Manifest.<init>(Manifest.java:69) [rt.jar:1.7.0_05]
at org.jboss.vfs.VFSUtils.readManifest(VFSUtils.java:216)
at org.jboss.vfs.VFSUtils.getManifest(VFSUtils.java:199)
at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.deploy(ManifestAttachmentProcessor.java:70) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
... 6 more
22:20:27,194 INFO [org.jboss.as.server#execute] JBAS015870: Deploy of deployment "startup-bean-3.0.0-SNAPSHOT.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"startup-bean-3.0.0-SNAPSHOT.jar\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"startup-bean-3.0.0-SNAPSHOT.jar\".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment \"startup-bean-3.0.0-SNAPSHOT.jar\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018741: Failed to get manifest for deployment \"/content/startup-bean-3.0.0-SNAPSHOT.jar\"
Caused by: java.io.IOException: invalid header field"}}
22:20:27,197 INFO [org.jboss.as.controller#tick] JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."startup-bean-3.0.0-SNAPSHOT.jar".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."startup-bean-3.0.0-SNAPSHOT.jar".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "startup-bean-3.0.0-SNAPSHOT.jar"
source of the problem is META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Built-By:
Build-Jdk: 1.7.0_02
Bundle-Version: 3.0.0-SNAPSHOT
Created-By: Apache Maven
Archiver-Version: Plexus Archiver
When I extract all files and build a new jar file ignoring the original MANIFEST.MF this archive deploys successful.
sb2000.[mbi2e_lafr]/tmp/jar. jar -cvf ../langfr.jar *
added manifest
ignoring entry META-INF/
ignoring entry META-INF/MANIFEST.MF
adding: META-INF/ejb-jar.xml(in = 389) (out= 208)(deflated 46%)
adding: META-INF/harvest.sig(in = 1667) (out= 232)(deflated 86%)
adding: com/(in = 0) (out= 0)(stored 0%)
adding: com/abc/(in = 0) (out= 0)(stored 0%)
adding: com/abc/xyz/(in = 0) (out= 0)(stored 0%)
adding: com/abc/xyz/XyzStartupBean.class(in = 698) (out= 437)(deflated 37%)
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.6.0_33 (Sun Microsystems Inc.)
22:23:02,629 INFO [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "langfr.jar"
22:23:02,783 INFO [org.jboss.as.osgi#start] JBAS011907: Register module: Module "deployment.langfr.jar:main" from Service Module Loader
22:23:02,852 INFO [stdout#write] bean instance created
22:23:02,853 INFO [stdout#write] post construct
22:23:03,118 INFO [org.jboss.as.server#execute] JBAS018559: Deployed "langfr.jar"
> Issue while deploying EJB 3.1 with JBoss AS 7.2.0 Alpha1
> --------------------------------------------------------
>
> Key: AS7-5037
> URL: https://issues.jboss.org/browse/AS7-5037
> Project: Application Server 7
> Issue Type: Bug
> Reporter: Manoj Agarwal
> Attachments: startup-bean-3.0.0-SNAPSHOT.jar, xyz-startup-bean-3.0.0-SNAPSHOT.jar
>
>
> I am trying to deploy a bean with annotations @Singleton and @Startup. I packaged it as a jar and put it under standalone/deployments.
>
> I get this error while starting server. Jar is attached.
>
> 11:35:22,844 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."xyz-startup-bean-3.0.0-SNAPSHOT.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."xyz-startup-bean-3.0.0-SNAPSHOT.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "xyz-startup-bean-3.0.0-SNAPSHOT.jar"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_02]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_02]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]
> Caused by: java.lang.NullPointerException
> at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:53) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:63)
> at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list