I have just started using Orion 0.9.1b, and have gotten it to load my web-app, except that it throws NoClassDefFound for classes that I have stored in the WEB-INF/lib directory of my web-app war (which is in turn packaged in an ear).

Searching the archives of this list, I found a message posted on 4 Feb from someone having the same problem ("Why can't Orion get into my jar files?"), but I didn't see any reply. Is this a known problem, or is this result of a configuration error on my part?

I also a reference in email posted on 8 Feb, from Magnus Stenman ("Re: Re: classloader problem") to a recently fixed bug:

PS. The 0.9.1 bug was that the servlet loader did not get access to the
     library loader if no EJBs where deployed in the application.
Could what I'm seeing be related to this bug?

I also references in the archive to version 0.9.1c, 0.9.1g, etc. The only version I could find on the web site was 0.9.1b. Should I try a more recent build for fixes to this problem? Are these more recent versions available for download?
 
I am appending to this message some of the relevant details of my configuration, in case they are of help in diagnosing my problem.

Yours, JonTom

    JT Kittredge
    ITA Software
    Cambridge, Massachusetts

Stack trace from the application log:
2/22/00 11:36 AM web-app: ITA.cvg.CVGServices: DEBUG: CVGServices, init
2/22/00 11:36 AM web-app: Error initializing servlet
java.lang.NoClassDefFoundError: com/bitmechanic/sql/ConnectionPoolManager
 at ITA.cvg.DBManager.initDBConnection(Compiled Code)
 at ITA.cvg.DBManager.<init>(Compiled Code)
 at ITA.cvg.CVGServices.initDBManager(Compiled Code)
 at ITA.cvg.CVGServices.init(Compiled Code)
 at com.evermind.server.http.HttpApplication.n_(Compiled Code)
 at com.evermind.server.http.HttpApplication.no(JAX)
 at com.evermind.server.http.HttpApplication.nu(Compiled Code)
 at com.evermind.server.http.HttpApplication.<init>(Compiled Code)
 at fk.ml(Compiled Code)
 at c3.ml(Compiled Code)
 at c2.mg(Compiled Code)
 at c4.mu(JAX)
 at c.run(Compiled Code)
2/22/00 11:36 AM web-app: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
 at com.evermind.server.http.HttpApplication.no(JAX)
 at com.evermind.server.http.HttpApplication.nu(Compiled Code)
 at com.evermind.server.http.HttpApplication.<init>(Compiled Code)
 at fk.ml(Compiled Code)
 at c3.ml(Compiled Code)
 at c2.mg(Compiled Code)
 at c4.mu(JAX)
 at c.run(Compiled Code)
2/22/00 11:36 AM web-app: Started
 

Listing of directories in my EAR file:
./web-app
./web-app/WEB-INF
./web-app/WEB-INF/classes
./web-app/WEB-INF/classes/ITA
./web-app/WEB-INF/classes/ITA/core
./web-app/WEB-INF/classes/ITA/util
./web-app/WEB-INF/classes/ITA/prego
./web-app/WEB-INF/classes/ITA/cvg
./web-app/WEB-INF/classes/ITA/cvg/jsp
./web-app/WEB-INF/classes/ITA/server
./web-app/WEB-INF/classes/ITA/lookup
./web-app/WEB-INF/classes/ITA/pogo85
./web-app/WEB-INF/lib
./web-app/help
./web-app/images
./web-app/images/signin
./web-app/signin
./web-app/jsp
./web-app/html
./META-INF

Listing of JARs in my EAR file:
./web-app/WEB-INF/lib/jdbcpool-0.94.jar (contains com/bitmechanic/sql/ConnectionPoolManager, the class that is not found)
./web-app/WEB-INF/lib/mysql.jar
./web-app/WEB-INF/lib/activation.jar
./web-app/WEB-INF/lib/mail.jar

Listing of ./META-INF/application.xml:
<application>
  <display-name>CVG</display-name>
  <module>
    <web>
      <web-uri>web-app</web-uri>
    </web>
  </module>
</application>

Listing of ./META-INF/orion-application.xml:
<orion-application>
  <web-module id="web-app" path="web-app" />
  <persistence path="persistence" />
  <log>
    <file path="application.log" />
  </log>
</orion-application>

Partial listing of ./web-app/WEB-INF/web.xml:
<web-app>
 <display-name>CVG</display-name>
 <session-config>
  <session-timeout>90</session-timeout>
 </session-config>

 <servlet>
  <servlet-name>cvgservices</servlet-name>
  <servlet-class>ITA.cvg.CVGServices</servlet-class>
  <load-on-startup>1</load-on-startup>
  <init-param>
    <param-name>debugparams</param-name>
    <param-value>{default|cvg|cvghi}</param-value>
  </init-param>
</servlet>

 <servlet-mapping>
  <servlet-name>cvgservices</servlet-name>
  <url-pattern>/services/*</url-pattern>
 </servlet-mapping>
 
<taglib>
   <taglib-uri>utiltags</taglib-uri>
   <taglib-location>/WEB-INF/lib/utiltags.jar</taglib-location>
 </taglib>
</web-app>
 

Reply via email to