[jboss-user] [Installation, Configuration & DEPLOYMENT] - Packagin complex Application.ear

twolf do-not-reply at jboss.com
Mon Jul 30 14:20:11 EDT 2007


Hi there,

Hope i am right here. So, my problem is to package a "complex" application together.
At the moment we have got two archives, one jar file containing EJBs and one war file containing servlets and other site stuff (jsp, static html, css and so on). Both of them use the same util-archives, both got them seperatly in their context. There are no problems until a servlet overgives an object (class definition from the util-archive) to an ejb which was loaded with two different classloaders - an classloader exception is thrown. I decided to put my two archives, the ejb.jar and our web.war to one app.ear - but i really do not understand to handle that correctly.

Here is what i have build:


  | Blubblub-App.ear:
  | |
  | +-META-INF
  |    +- MANIFEST.MF
  |    +- application.xml
  | |
  | +-lib/
  |    +-xerces-2_6_2.jar
  |    +-nutch-0.9.jar
  |    +-lucene-mics.jar
  |    +-lucene-core.jar
  |    +-hadoop-0.12.2-core.jar
  |    +-commons[...].jar
  |    +-Blublub-Engine.jar
  | |
  | +-conf/ (Empty cause i dont know what to do)
  | |
  | +-properties
  |   +-blublbub.properties
  | |
  | +-Blublbub-EJB.jar
  |    +-META-INF
  |        +-MANIFEST.MF [Class-Path: lib/...]
  |        +-ejb-jar.xml
  | |
  | +-Blublub-WEB.war
  |    (Dont know how to acces to the lib/ folder above)
  | 

The nutch-0.9.jar,hadoop.jar also needs some (mostly) xml based configuration files, they must be in the classpath too. Servlets and some JSP Files need to access to the files in the lib dir. Both, a servlet and a session-bean need to exchange objects defined in the lib dir. 

So, can anybody help me?


Greeting from Germany

Tobias

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068837#4068837

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068837



More information about the jboss-user mailing list