Hi,

I am building CAS in war overlay method. I am attaching my POM file with this 
message. 

If I remove the dependency with restlet module, the 
sprint-web-3.0.5.RELEASE.jar file is getting added to the lib folder of the 
target war file. And that is what I expected.

If I add the restlet dependency, it is bringing in spring-wen-2.5.jar file also 
along with the one mentioned above. This is causing problems deploying the 
module in the server. This is the log. 

java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
        at 
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430)
        at 
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at 
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at 
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at 
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) 


I have removed all the previously existing instances of the 
cas-server-integration-restlet module from my local Maven repository and did 
clean rebuild several different ways but could not get around the issue. 

When I manually edited the cas.war file that is created and removed the older 
2.5 version of spring web jar file, then I am able to deploy successfully.

Can some one help me fix this issue so that I can avoid manually editing the 
final file.

Thanks
Madhavi
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user
<project xmlns="http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
 
  <modelVersion>4.0.0</modelVersion>
  <groupId>tsys.cas</groupId>
  <artifactId>local-cas</artifactId>
  <version>${cas.version}</version>
  <packaging>war</packaging>
  <name>TSYS-LOCAL-CAS</name>
  
  
  <build>
	<plugins>
		<plugin>
		     <artifactId>maven-war-plugin</artifactId>
             <configuration>
                 <warName>cas</warName>
             </configuration>
             <version>2.1.1</version>
		</plugin>
		
		  <plugin>
		      <groupId>org.codehaus.mojo</groupId>
		      <artifactId>tomcat-maven-plugin</artifactId>
		      <version>1.1</version>
		      <configuration>
		               <server>anytomcat</server>
		               <warFile>target/cas.war</warFile>
		               <path>/cas</path>
					   <url>http://cas-ser.tsys.tss.net:8020/manager</url>	               
		      </configuration>
		  </plugin>		
		  
	</plugins>
  </build>
 
  <dependencies>
      <dependency>
          <groupId>org.jasig.cas</groupId>
          <artifactId>cas-server-webapp</artifactId>
          <version>${cas.version}</version>
          <type>war</type>
          <scope>runtime</scope>
      </dependency>
	  <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-support-generic</artifactId>
            <version>${cas.version}</version>
            <type>jar</type>
            <scope>runtime</scope>
      </dependency>      
	  <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-support-ldap</artifactId>
            <version>${cas.version}</version>
            <type>jar</type>
            <scope>runtime</scope>
      </dependency>      

		<dependency>
		    <groupId>org.jasig.cas</groupId>
		    <artifactId>cas-server-integration-restlet</artifactId>
		    <version>${cas.version}</version>
		    <type>jar</type>
		</dependency>      
      
      <dependency>
    		<groupId>tsys.cas.custom</groupId>
    		<artifactId>tsys-cas-DbAuth-support</artifactId>
    		<version>${project.version}</version>
    		<scope>runtime</scope>
	  </dependency>
	  
<!-- persistence tickets in db for CAS -->


        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>${hibernate.validator.version}</version>
            <scope>runtime</scope>
        </dependency>
        
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${hibernate.core.version}</version>
            <scope>runtime</scope>
        </dependency>
        
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.12</version>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>commons-pool</groupId>
            <artifactId>commons-pool</artifactId>
            <version>1.5.4</version>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.3</version>
            <scope>runtime</scope>
        </dependency>

                
<!--dependency>
	<groupId>c3p0</groupId>
	<artifactId>c3p0</artifactId>
	<version>0.9.1.2</version>
	<scope>runtime</scope>
</dependency -->	
	  
</dependencies>
  
   
   <!-- These properties are copied over from the CAS Server parent project to maintain the versions of the dependencies-->
   
	<properties>
		<issues.projectKey>CAS</issues.projectKey>
		<scm.path>/cas3</scm.path>
        <spring.webflow.version>2.2.1.RELEASE</spring.webflow.version>
        <spring.version>3.0.5.RELEASE</spring.version>
        <spring.ldap.version>1.3.1.RELEASE</spring.ldap.version>
        <spring.security.version>3.0.5.RELEASE</spring.security.version>
        <clover.version>2.6.3</clover.version>
        <aspectj.version>1.6.10</aspectj.version>
        <javax.validation.version>1.0.0.GA</javax.validation.version>
        <perf4j.version>0.9.14</perf4j.version>
        <commons.jexl.version>1.1</commons.jexl.version>
        <hibernate.validator.version>4.0.2.GA</hibernate.validator.version>
        <hibernate.core.version>3.6.0.Final</hibernate.core.version>
        <slf4j.version>1.5.8</slf4j.version>
        <person.directory.version>1.5.0-RC6</person.directory.version>
        <servlet.api.version>2.5</servlet.api.version>
        <jpa.version>2.0-cr-1</jpa.version>
        <commons.codec.version>1.4</commons.codec.version>
        <log4j.version>1.2.15</log4j.version>
        <junit.version>4.7</junit.version>
        <commons.lang.version>2.5</commons.lang.version>
        <inspektr.version>1.0.2.GA</inspektr.version>
        <commons.io.version>2.0</commons.io.version>
        <mockito.version>1.8.5</mockito.version>
        
        
        <!-- This property is locally defined -->
        <cas.version>3.4.8</cas.version>
	</properties>   
 
   <repositories>
        <repository>
             <id>ja-sig</id>
             <url>https://source.jasig.org/cas3/tags/cas-server-3.4.8/</url>
        </repository>
   </repositories>
  
  
</project>

Reply via email to