tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chrisjroyce <chrisjro...@googlemail.com>
Subject Ignore AppModule in classpath?
Date Thu, 18 Nov 2010 12:06:15 GMT

Hi all,

I've been going slightly mad on this one...

When I run my openEJB container within a JUnit inside eclipse it runs
successful and loads the following..

INFO - openejb.home = E:\noinst\eclipsews\app1
INFO - openejb.base = E:\noinst\eclipsews\app1
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=App1DefaultPu, type=Resource,
provider-id=Default JDBC Database)
INFO - Found PersistenceModule in classpath:
E:\noinst\eclipsews\app1\deplib\vehicle-locator.jar
INFO - Found EjbModule in classpath:
E:\noinst\eclipsews\app1\deplib\csg-ejb.jar
INFO - Found EjbModule in classpath: E:\noinst\eclipsews\app1\ejb
INFO - Beginning load: E:\noinst\eclipsews\app1\deplib\vehicle-locator.jar
INFO - Beginning load: E:\noinst\eclipsews\app1\deplib\csg-ejb.jar
INFO - Beginning load: E:\noinst\eclipsews\app1\ejb


However when running it via ant the classpath must be different because I
get the following:

    [junit] INFO - openejb.home = E:\noinst\eclipsews\app1
    [junit] INFO - openejb.base = E:\noinst\eclipsews\app1
    [junit] INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
    [junit] INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
    [junit] INFO - Configuring Service(id=EtisDefaultPu, type=Resource,
provider-id=Default JDBC Database)
    [junit] INFO - Found PersistenceModule in classpath:
E:\noinst\eclipsews\app1\deplib\vehicle-locator.jar
    [junit] INFO - Found EjbModule in classpath:
E:\noinst\eclipsews\app1\deplib\csg-ejb.jar
    [junit] INFO - Found EjbModule in classpath:
E:\noinst\eclipsews\app1\ejb
    [junit] INFO - Found AppModule in classpath: E:\noinst\eclipsews\app1
    [junit] INFO - Beginning load:
E:\noinst\eclipsews\app1\deplib\vehicle-locator.jar
    [junit] INFO - Beginning load:
E:\noinst\eclipsews\app1\deplib\csg-ejb.jar
    [junit] INFO - Beginning load: E:\noinst\eclipsews\app1\ejb
    [junit] INFO - Beginning load: E:\noinst\eclipsews\app1
	
With the following error on deploying the AppModule.

    [junit] ERROR - Unable to load WAR: E:\noinst\eclipsews\app1, module:
web. Exception: Cannot unmarshall the JSP tag library definition file:
file:/E:/noinst/eclipsews/app1/web/WEB-INF/struts-form.tld: unexpected
element (uri:"http://java.sun.com/xml/ns/javaee", local:"tlibversion").
Expected elements are
<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}short-name>
    [junit] org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP
tag library definition file:
file:/E:/noinst/eclipsews/app1/web/WEB-INF/struts-form.tld: unexpected
element (uri:"http://java.sun.com/xml/ns/javaee", local:"tlibversion").
Expected elements are
<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}short-name>
	
	The tag library is valid as is current within our production system and
validates against the schema and DTD.
	

However I don't actually care about the AppModule, so is there a way I can
stop it being included?

I have tried using..

p.put("openejb.deployments.classpath.exclude",""); 
p.put("openejb.deployments.classpath.include",".*ejb");
p.put("openejb.deployments.classpath.filter.descriptors", "true");  

but this didn't really achieve anything.

Can anyone offer me a pointer?
-- 
View this message in context: http://openejb.979440.n4.nabble.com/Ignore-AppModule-in-classpath-tp3048522p3048522.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message