Hello,

I am trying to package my EJB app in an ear file.

The problem seems to revolve around a 3rd party library I am using.

My EJB uses the jdom.jar file.

I could put this library in the <vendor>jboss lib/ext</vendor> directory and
thus have it on the main classpath, but I believe that I can put this into
the ear archive and have the file picked up from there.

Thus the structure of my ear is as follows;

kimptoc@www:~ > jar tvf ifoxdirect/confirms/bin/ejbapp-1.0-alpha.ear
     0 Fri Feb 16 09:42:20 GMT 2001 META-INF/
   119 Thu Feb 15 22:57:06 GMT 2001 META-INF/MANIFEST.MF
     0 Fri Feb 16 13:11:40 GMT 2001 library/
 16014 Fri Feb 16 13:11:40 GMT 2001 ejbapp-1.0-alpha.jar
1484896 Fri Feb 16 13:11:40 GMT 2001 library/xerces-1.2.1.jar
 78541 Fri Feb 16 13:11:40 GMT 2001 library/jdom-b6.jar
   147 Fri Feb 16 13:11:40 GMT 2001 META-INF/application.xml

The application.xml file just defines the one ejb.

But when I deploy this with jboss, I get a class not found error relating to
the org.jdom.Document, as follows;

[Verifier] Verifying
file:/home/kimptoc/jboss/jbossrw/jboss/dist/tmp/deploy/Default/ejbapp-1.0-al
pha.ear/ejb1001.jar
[Verifier] java.lang.NoClassDefFoundError: org/jdom/Document
[Verifier]      at java.lang.Class.getMethods0(Native Method)
[Verifier]      at java.lang.Class.getMethods(Class.java:742)
[Verifier]      at
org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVeri
fier.java:421)
[Verifier]      at
org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifier11.ja
va:562)
[Verifier]      at
org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.java:92
)
[Verifier]      at
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)
[Verifier]      at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:363)
[Verifier]      at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:259)
[Verifier]      at java.lang.reflect.Method.invoke(Native Method)
[Verifier]      at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)




I am using the latest jboss code from cvs and still getting this error.

Have I packaged it wrongly?  Or is this a problem with jboss?



Thanks in advance for any help.

Chris

================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to