Well, it turns out that if I add the /source/classes directory to my system classpath then it seems to find the classes, but some strange things happen durring deployment. First of all it seems the ejb-jar.xml file in the /source/classes/META-INF directory takes precedence over ALL other application deployed ejb's so the tomcat-test.ear fails with errors about jboss.xml not containing the same information as ejb-jar.xml.
 
But even if i only deploy this one application, I get a really strange error when trying to verify the ejb deployment. I get a ClassNotFound exception on javax.ejb.EJBHome and javax.ejb.SessionBean.
 
BTW, is there a way to search the archives for this mailing list?
 
Thanks
Jim
-----Original Message-----
From: Carroll, Jim
Sent: Wednesday, January 16, 2002 7:01 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss/Catalina Path Question

I am trying to use a non jared class repository and doc tree durring development of a J2EE application using JBoss/Tomcat 4 (Catalina). I set up my application.xml file to point to the unjared doc root and the code repository but I seem to be having 2 path related problems:
 
1) JBoss can't find the ejb-jar.xml file even though it is in the META-INF subdirectory of the place where the application.xml's ejb module points. I know it finds the directory because if I change the path in the application.xml's ejb/module elemet then I get a different error (one that states it can't find the directory).
 
2) No matter where I add the classpath (it jboss.conf using ClassPathExtention, to the system classpath of the jboss start command, etc) Catalina can't find the servlet or filter code on startup.
 
My setup consists of a directory structure and application.xml that looks like the following:
 
 / -
   |
   - cots -
   |       |
   |       - jbossroot-
   |                   |
   |                   - catalina ...
   |                   |
   |                   - jboss -
   |                           |
   |                           - conf
   |                             ...
   |                           - deploy -
   |                                     |
   |                                     - j2eeApp -
   |                                               |
   |                                               - META_INF -
   |                                                           |
   |                                                          application.xml
   - htdocs -
   |        |
   |        - WEB-INF-
   |                 |
   |                 web.xml
   |
   |        |
   |        ... doc tree with jsp's/html
   |
   - source -
            |
            - classes -
                      |
                      - com (this is the tree containing the class files)
                      |     |
                      |     - company -
                      |               |
                      |               ...
                      |
                      - META-INF-
                                |
                                ejb-jar.xml
 
My application.xml looks like the following:
 
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
 
<application>
 <display-name>J2EEApp</display-name>
 
 <module><ejb>../../../../../source/classes</ejb></module>
 
 <module>
  <web>
   <web-uri>../../../../../../htdocs</web-uri>
   <context-root>/</context-root>
  </web>
 </module>
</application>
Any help would be appreciated.
 
Thanks
Jim
 
 

Reply via email to