Hello all! My
apologies for a possible duplicate post to this list, but I did a search and
manual walk of the Geocrawler archives first. Here is the
problem:
I have an ear file
with 1 EJB that I am porting to Jboss from Weblogic (with no weblogic-specific
stuff). The EJB's manifest.mf declares a class-path (with the required C/R at
the end) with a list of 5 jars that are in the ear. It seems that JBoss 3.0.0
beta is deploying the jars in 2 groups - some before and some after the EJB, so
not all the jars are in JBOSS/tmp/deploy.
Here is the
manifest:
Class-Path:
common.jar log4j.jar castor.jar jdbc-se2.0.jar jta1.0.1.jar
Here is the output
from the server's logs:
2002-03-29
09:19:18,046 INFO [org.jboss.deployment.MainDeployer] Deploying:
file:/C:/bmiroot/BuildTools/jboss_tomcat/deploy/bmiapp.ear
2002-03-29 09:19:18,086 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/bmiroot/BuildTools/jboss_tomcat/deploy/bmiapp.ear
2002-03-29 09:19:18,346 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/101.log4j.jar
2002-03-29 09:19:18,366 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/xerces.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jdbc-se2.0.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jndi.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jta1.0.1.jar which could not be opened, entry ignored
2002-03-29 09:19:18,086 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/bmiroot/BuildTools/jboss_tomcat/deploy/bmiapp.ear
2002-03-29 09:19:18,346 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/101.log4j.jar
2002-03-29 09:19:18,366 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/xerces.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jdbc-se2.0.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jndi.jar, which could not be opened, entry ignored
2002-03-29 09:19:18,406 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/96.castor.jar references URL file:/C:/bmiroot/BuildTools/jbo
ss_tomcat/tmp/deploy/jta1.0.1.jar which could not be opened, entry ignored
<Interesting stuff>
2002-03-29 09:19:18,426 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/100.jta1.0.1.jar
(Below, the manifest in the EJB is being processed,
before the files are copied. They are copied below):
2002-03-29 09:19:18,446 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar
2002-03-29 09:19:18,466 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/common.jar which could not be opened, entry ignored
2002-03-29 09:19:18,466 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/log4j.jar which could not be opened, entry ignored
2002-03-29 09:19:18,486 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/castor.jar which could not be opened, entry ignored
2002-03-29 09:19:18,486 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/jdbc-se2.0.jar which could not be opened, entry ignored
2002-03-29 09:19:18,546 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/jta1.0.1.jar which could not be opened, entry ignored
2002-03-29 09:19:18,616 INFO [org.jboss.ejb.EJBDeployer] Deploying ObjectManager
2002-03-29 09:19:18,646 INFO [org.jboss.ejb.EJBDeployer] Deploying ObjectQueryManager
2002-03-29 09:19:18,895 ERROR [org.jboss.system.ServiceController] JMRuntimeException thrown during ServiceProxy operation create on mbean jboss.j2ee:service=EJB,jndiName=com.betweenmarkets.registry.e
bxml.ObjectQueryManagerHome
java.lang.NoClassDefFoundError: com/betweenmarkets/util/StringMarshaller
2002-03-29 09:19:18,446 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar
2002-03-29 09:19:18,466 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/common.jar which could not be opened, entry ignored
2002-03-29 09:19:18,466 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/log4j.jar which could not be opened, entry ignored
2002-03-29 09:19:18,486 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/castor.jar which could not be opened, entry ignored
2002-03-29 09:19:18,486 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/jdbc-se2.0.jar which could not be opened, entry ignored
2002-03-29 09:19:18,546 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/95.DirectoryServiceBean.jar references URL file:/C:/bmiroot/
BuildTools/jboss_tomcat/tmp/deploy/lib/jta1.0.1.jar which could not be opened, entry ignored
2002-03-29 09:19:18,616 INFO [org.jboss.ejb.EJBDeployer] Deploying ObjectManager
2002-03-29 09:19:18,646 INFO [org.jboss.ejb.EJBDeployer] Deploying ObjectQueryManager
2002-03-29 09:19:18,895 ERROR [org.jboss.system.ServiceController] JMRuntimeException thrown during ServiceProxy operation create on mbean jboss.j2ee:service=EJB,jndiName=com.betweenmarkets.registry.e
bxml.ObjectQueryManagerHome
java.lang.NoClassDefFoundError: com/betweenmarkets/util/StringMarshaller
(Now, it copies the
rest of the jars in the EAR - too little, too late)
2002-03-29
09:19:19,485 INFO [org.jboss.deployment.MainDeployer] Deploying:
file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/99.jdbc-se2.0.jar
2002-03-29 09:19:19,505 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/98.directory-service.jar
2002-03-29 09:19:19,535 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/97.common.jar
2002-03-29 09:19:19,545 INFO [org.jboss.deployment.EARDeployer] Deploying J2EE application: file:/C:/bmiroot/BuildTools/jboss_tomcat/deploy/bmiapp.ear
2002-03-29 09:19:19,505 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/98.directory-service.jar
2002-03-29 09:19:19,535 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/bmiroot/BuildTools/jboss_tomcat/tmp/deploy/97.common.jar
2002-03-29 09:19:19,545 INFO [org.jboss.deployment.EARDeployer] Deploying J2EE application: file:/C:/bmiroot/BuildTools/jboss_tomcat/deploy/bmiapp.ear
</Interesting stuff>
I'm not concerned
with the error messages from castor.jar, but I am concerned tht the EJB is
trying to be deployed before the common.jar is deployed.
So, is this a known
issue, is there a workaround, or am I just missing something? I had this EJB
working at some point, but now it seems to copy the jars out of order and fails
to deploy the EJB (based on the web admin pages on port 8082).
Any help is
appreciated!
Thanks,
James