geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jleonar <jleo...@gmail.com>
Subject Geronimo with Liferay library conflict
Date Fri, 28 Dec 2007 12:40:07 GMT

I have some custom code deployed within Liferay(4.3.x) running on Geronimo
1.1

The custom code uses xercesImpl-2.8.0 or higher.  Geronimo 1.1 uses
xercesImpl-2.6.2.  So my code breaks because it is always using the
xercesImpl-2.6.2 instead of the xercesImpl-2.8.0 jar that I have in the
sharedlib folder.

I don't want to do anything specific to the changes in liferay because I
have this code working on multiple application servers(e.g. Tomcat).

I have tried using hidden-classes to hide the application server's library
for xercesImpl but that doesn't seem to work.  Here is my geronimo-web.xml
in the liferay repository.

<?xml version="1.0"?>

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
	<environment>
		<moduleId>
			<groupId>liferay</groupId>
			<artifactId>liferay-portal-tomcat</artifactId>
			<version>4.3.3</version>
			<type>car</type>
		</moduleId>
    <hidden-classes> 
        <filter>org.apache.xerces</filter> 
    </hidden-classes>
		<dependencies>
			<dependency>
				<groupId>geronimo</groupId>
				<artifactId>j2ee-server</artifactId>
				<type>car</type>
			</dependency>
			<dependency>
				<groupId>geronimo</groupId>
				<artifactId>j2ee-security</artifactId>
				<type>car</type>
			</dependency>
			<dependency>
				<groupId>geronimo</groupId>
				<artifactId>rmi-naming</artifactId>
				<type>car</type>
			</dependency>
			<dependency>
				<groupId>geronimo</groupId>
				<artifactId>geronimo-mail</artifactId>
				<type>jar</type>
				<import>classes</import>
			</dependency>
			<dependency>
				<groupId>org.apache.geronimo.specs</groupId>
				<artifactId>geronimo-javamail_1.3.1_spec</artifactId>
				<type>jar</type>
				<import>classes</import>
			</dependency>
			<dependency>
				<artifactId>sharedlib</artifactId>
			</dependency>
			<dependency>
				<groupId>liferay</groupId>
				<artifactId>liferay-pool</artifactId>
				<type>car</type>
			</dependency>
		</dependencies>

	</environment>
	<context-root>/</context-root>
	<security-realm-name>PortalRealm</security-realm-name>
	<security>
		<default-principal>
			<principal name="anonymous"
class="com.liferay.portal.security.jaas.PortalPrincipal" />
		</default-principal>
		<role-mappings>
			<role role-name="users">
				<principal class="com.liferay.portal.security.jaas.PortalRole"
name="users" />
			</role>
		</role-mappings>
	</security>
	<resource-ref>
		<ref-name>jdbc/LiferayPool</ref-name>
		<resource-link>LiferayPool</resource-link>
	</resource-ref>
	<resource-ref>
		<ref-name>mail/MailSession</ref-name>
		<resource-link>LiferayMailSession</resource-link>
	</resource-ref>
	<gbean name="LiferayMailSession"
class="org.apache.geronimo.mail.MailGBean">
		<attribute name="transportProtocol">smtp</attribute>
		<attribute name="host">localhost</attribute>
	</gbean>
	<gbean name="PortalRealm"
class="org.apache.geronimo.security.realm.GenericSecurityRealm">
		<attribute name="realmName">PortalRealm</attribute>
		<reference name="ServerInfo">
			<name>ServerInfo</name>
		</reference>
		<reference name="LoginService">
			<name>JaasLoginService</name>
		</reference>
		<xml-reference name="LoginModuleConfiguration">
			<log:login-config
xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.1">
				<log:login-module control-flag="REQUIRED" server-side="true"
wrap-principals="false">
					<log:login-domain-name>PortalRealm-login</log:login-domain-name>
				
<log:login-module-class>com.liferay.portal.security.jaas.ext.tomcat.PortalLoginModule</log:login-module-class>
				</log:login-module>
			</log:login-config>
		</xml-reference>
	</gbean>
</web-app>

-- 
View this message in context: http://www.nabble.com/Geronimo-with-Liferay-library-conflict-tp14525371s134p14525371.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message