[jboss-dev-forums] [Design the new POJO MicroContainer] - jboss-structure help needed

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Jan 21 15:50:28 EST 2008


The ejb jar looks as follows:

  | jar tvf jca-securedejb.jar
  |  0 Sat Dec 08 12:05:56 CST 2007 META-INF/
  |  106 Sat Dec 08 12:05:54 CST 2007 META-INF/MANIFEST.MF
  |   0 Sat Dec 08 12:04:18 CST 2007 org/
  |      0 Sat Dec 08 12:04:00 CST 2007 org/jboss/
  |      0 Sat Dec 08 12:04:18 CST 2007 org/jboss/test/
  |      0 Sat Dec 08 12:04:12 CST 2007 org/jboss/test/jca/
  |      0 Sat Dec 08 12:04:12 CST 2007 org/jboss/test/jca/securedejb/
  |    369 Sat Dec 08 12:04:12 CST 2007 org/jboss/test/jca/securedejb/CallerIdentity.class
  |   6472 Sat Dec 08 12:04:12 CST 2007 org/jboss/test/jca/securedejb/CallerIdentityBean.class
  |    326 Sat Dec 08 12:04:12 CST 2007 org/jboss/test/jca/securedejb/CallerIdentityHome.class
  |  13042 Sat Dec 08 12:05:54 CST 2007 notxfs.rar
  |   4244 Sat Dec 08 12:02:52 CST 2007 META-INF/ejb-jar.xml
  |   2320 Sat Dec 08 12:02:32 CST 2007 META-INF/jboss.xml
  |   2150 Sat Dec 08 12:02:46 CST 2007 calleridentity-ds.xml
  |   3730 Sat Dec 08 12:02:26 CST 2007 login-config.xml
  |    631 Sat Dec 08 12:02:28 CST 2007 notxfs-ds.xml
  | 

There are two DS files and a login-config.xml in the deployment.  

I tried a jboss-structure.xml as follows:

  | <structure>
  |    <context>
  |       <path name=""/>
  |       <metaDataPath>
  |          <path name="META-INF"/>
  |          <path name="calleridentity-ds.xml"/>
  |          <path name="login-config.xml"/>
  |          <path name="notxfs-ds.xml"/>
  |       </metaDataPath>
  |       <classpath>
  |          <path name=""/>
  |       </classpath>
  |    </context>
  | </structure>
  | 

I saw errors such as:

  | 2008-01-21 14:31:44,953 DEBUG [org.jboss.deployers.vfs.plugins.structure.Abstrac
  | tVFSDeploymentContext] Error retrieving meta data: name=null suffix=-beans.xml^M
  | java.lang.IllegalStateException: File cannot contain children: JarEntryHandler at 3
  | 1854819[path=calleridentity-ds.xml context=file:/C:/cygwin/home/asaldhana/jboss-
  | 5.0/jboss-head/testsuite/output/lib/jca-securedejb.jar real=jar:file:/C:/cygwin/
  | home/asaldhana/jboss-5.0/jboss-head/testsuite/output/lib/jca-securedejb.jar!/cal
  | leridentity-ds.xml]^M
  |         at org.jboss.virtual.VirtualFile.getChildren(VirtualFile.java:305)^M
  |         at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContex
  | t.getMetaDataFiles(AbstractVFSDeploymentContext.java:238)^M
  |         at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit.g
  | 

I tried the .xml files outside the METADataPath in the structure file in vain.

Can you please give me some examples of jboss-structure files?

The test in question is:

  | org.jboss.test.jca.test.SecurityContextUnitTestCase
  | 

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

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



More information about the jboss-dev-forums mailing list