Hi Stephen,

now I'm be stumped, your structure looks fine to me. Did you set a carriage return at the end of each Class-Path line?
hmm ...try to post your problem at the jboss list and let these guys solve your problem;-).
Sorry I can't help more.
Please keep me up-to-date (seems to me very important for other user).


regards,
Armin

Stephen Ting wrote:
Hi Armin,

I am trying to deploy an ear file with the following structure, but
failed

/ejb1.jar/
...EJBs
...META-INF/
......ejb-jar.xml
......jboss.xml
......MANIFEST.MF [Class-Path: ./lib/ojb.jar]


/ejb2.jar/
...EJBs
...META-INF/
......ejb-jar.xml
......jboss.xml
......MANIFEST.MF [Class-Path: ./lib/ojb.jar]


/web-app.war/
...JSP
...WEB-INF/
......web.xml [ejb-refs to EJBs]

/META-INF/
...application.xml
/lib/ojb.jar
/lib/ojb related jar

/OJB.properties
/repository.xml
/repository_database1.xml
/repository_sys1.xml
/repository_database2.xml
/repository_sys2.xml

It doesn't work, everytime getting this exception

2004-04-21 11:13:02,626 INFO  [org.jboss.deployment.EARDeployer] Init
J2EE application:
file:/G:/jboss/jboss-3.2.3-n/server/default/deploy/eplyPortal.ear
2004-04-21 11:13:03,970 WARN  [org.jboss.ejb.EJBDeployer] Verify failed;
continuing
java.lang.NoClassDefFoundError:
org/apache/ojb/broker/PersistenceBrokerException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
        at java.lang.Class.privateGetPublicMethods(Class.java:1770)
        at java.lang.Class.getMethods(Class.java:824)

Whereas if I access OJB through JNDI, I have no problems.

Please help

Thanks

Regards,
Stephen





-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: 19 April 2004 15:02
To: OJB Users List
Subject: Re: deploying OJB in Jboss



Hi Stephen,


Stephen Ting wrote:


Hi Armin,

If I were to have multiple ejb.jar that have it owns

repository (class


descriptor, jdbc-connection-descriptor). OJB will only found

the jdbc


connection descriptor of the ejb.jar that is firstly

deployed. What is


the correct strategy for deployment of multiple ejb.jar with it own bundle of OJB.jar in a same JVM?


hmm, each .ear file is separate application and should have its own classloader. Thus if you include all ojb jars + jars OJB depends and the config files in each .ear file you can use different .ear applications with different config files.
But I think it is not possible to use different OJB config files in the same .ear file (same application), because all ejb.jar files use the same classloader.
If you have multiple ejb.jar files in one .ear file, each ejb.jar file will find the same config-files (first found by classloader).


Why do you need this - can you explain?

regards,
Armin


Thanks
Regards,
Stephen






-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: 18 April 2004 01:59
To: OJB Users List
Subject: Re: deploying OJB in Jboss


Hi Stephen,


Stephen Ting wrote:



I had followed the following ear template suggested by OJB

deployment



tutorial. But still during deployment time of my EAR. Jboss

complain



cann't find OJB api. Whereas if i include the lib in the

ejb.jar file,



it will deploy successfully without any problems.

Sorry I never tried this, the description showed in the
deployment file based on this post


http://www.mail-archive.com/[EMAIL PROTECTED]/msg08471.html

of successfully deployment.

regards,
Armin



I was not able to do
this, because i had more than one archive of my session bean,
therefore, i needs all the session in different archive to

see the OJB



api in the EAR file.

Can someone please help? Please also find attached my manifest.mf..

/ejb.jar/
...EJBs
...DAOs
...META-INF/
......ejb-jar.xml
......jboss.xml
......MANIFEST.MF [Class-Path: /lib/ojb.jar<CRLF>] <---

VERY IMPORTANT



/lib/
...ojb.jar

/web-app.war/
...JSP
...WEB-INF/
......web.xml [ejb-refs to EJBs]

/META-INF/
...application.xml

/OJB.properties
/repository.xml
/repository_database.xml
/repository_user.xml


This is the content of my manifest.mf file


Manifest-Version: 1.0

Ant-Version: Apache Ant 1.6.1

Created-By: 1.4.2-b28 (Sun Microsystems Inc.)

Name: main

Class-Path: /lib/ojb.jar

Thanks.

Regards,

Stephen Ting



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to