[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Noob encounters deployment woes.

jaikiran do-not-reply at jboss.com
Sun Oct 26 10:00:32 EDT 2008


anonymous wrote : 
  | org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/D:/jboss-5.0.0.CR2/server/all/deploy/simple.ear/jaxb-xjc.jar/1.0/ 
  | ....
  | vfszip:/D:/jboss-5.0.0.CR2/server/all/deploy/simple.ear -> java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.0
  | 

Looks like the new VFS implementation in JBoss-5 does not like the contents of this jar :-)

I just downloaded the jaxb-xjc.jar and looked at its contents:

  | 
  | META-INF/
  | META-INF/MANIFEST.MF
  | META-INF/maven/
  | META-INF/maven/com.sun.codemodel/
  | META-INF/maven/com.sun.codemodel/codemodel/
  | com/
  | com/sun/
  | com/sun/codemodel/
  | com/sun/codemodel/fmt/
  | com/sun/codemodel/util/
  | com/sun/codemodel/writer/
  | com/sun/dtdparser/
  | com/sun/istack/
  | ...
  | org/
  | org/kohsuke/
  | org/kohsuke/rngom/
  | org/kohsuke/rngom/ast/
  | org/kohsuke/rngom/ast/builder/
  | org/kohsuke/rngom/ast/om/
  | org/kohsuke/rngom/ast/util/
  | org/kohsuke/rngom/binary/
  | org/kohsuke/rngom/binary/visitor/
  | org/kohsuke/rngom/digested/
  | org/kohsuke/rngom/dt/
  | org/kohsuke/rngom/dt/builtin/
  | org/kohsuke/rngom/nc/
  | org/kohsuke/rngom/parse/
  | org/kohsuke/rngom/parse/compact/
  | .......
  | META-INF/LICENSE.txt
  | META-INF/jing-copying.html
  | META-INF/maven/com.sun.codemodel/codemodel/pom.properties
  | META-INF/maven/com.sun.codemodel/codemodel/pom.xml
  | 
  | ......
  | 
  | 1.0/
  | 1.0/META-INF/
  | 1.0/META-INF/services/
  | 1.0/com/
  | 1.0/com/sun/
  | 1.0/com/sun/codemodel/
  | 1.0/com/sun/codemodel/fmt/
  | 1.0/com/sun/codemodel/util/
  | 1.0/com/sun/codemodel/writer/
  | 1.0/com/sun/relaxng/
  | 1.0/com/sun/relaxng/javadt/
  | 1.0/com/sun/tools/
  | 1.0/com/sun/tools/xjc/
  | 1.0/com/sun/tools/xjc/addon/
  | 1.0/com/sun/tools/xjc/addon/elementwrapper/
  | 1.0/com/sun/tools/xjc/addon/locator/
  | 1.0/com/sun/tools/xjc/addon/sync/
  | 1.0/com/sun/tools/xjc/generator/
  | 1.0/com/sun/tools/xjc/generator/cls/
  | 1.0/com/sun/tools/xjc/generator/field/
  | 1.0/com/sun/tools/xjc/generator/marshaller/
  | 1.0/com/sun/tools/xjc/generator/unmarshaller/
  | 1.0/com/sun/tools/xjc/generator/unmarshaller/automaton/
  | ...
  | 

To put this output in a better form:

jaxb-xjc.jar
  |  |
  |  |--- META-INF <and some contents under this)
  |  |
  |  |
  |  |--- org [the usual package/classes under this]
  |  |
  |  |--- com [the usual package/classes under this]
  |  |
  |  |
  |  |--- 1.0 [see my note below about this folder] 
  |  |	|	
  |  |	|--- META-INF
  |  |	|	|
  |  |	|	|--- services [some stuff under this]
  |  |	|
  |  |	|--- com [usual package/classes inside this]
  |  
  |  
  |  


The (naming of) 1.0 folder inside the jaxb-xjc.jar looks strange since this folder has a META-INF as well as some classes under it. The VFS implementation considers this a jar file because of the META-INF folder and hence complains about its naming.


anonymous wrote :  What is the remedy? 

I remember Ales Justin was working on a similar (a bit different) issue with one of the JDBC driver jar files. I would recommend you open a new thread in the JBoss AS5 forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=287 and point them to this thread. You are going to get a better response there since this issue is AS5 specific.

 
 		
 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184674#4184674

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184674



More information about the jboss-user mailing list