Hi,

I have followed https://wiki.jasig.org/display/CASUM/Building+and+Deploying to 
install CAS but when I try to configure it for LDAP authentication it fails.

I am trying to build using this pom.xml  file:


<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/maven-v4_0_0.xsd";>
        <parent>
                <groupId>org.jasig.cas</groupId>
                <artifactId>cas-server</artifactId>
                <version>3.4.11</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <groupId>edu.curry.cas</groupId>
        <artifactId>cas</artifactId>
        <packaging>war</packaging>


        <dependencies>
                <dependency>
                        <groupId>org.jasig.cas</groupId>
                        <artifactId>cas-server-support-ldap</artifactId>
                        <version>${project.version}</version>
                </dependency>

        <dependency>
            <groupId>org.springframework.webflow</groupId>
            <artifactId>spring-webflow</artifactId>
            <scope>compile</scope>
        </dependency>

                <dependency>
                        <groupId>org.springframework.ldap</groupId>
                        <artifactId>spring-ldap-core</artifactId>
                </dependency>

                <dependency>
                        <groupId>org.springframework.ldap</groupId>
                        <artifactId>spring-ldap-core-tiger</artifactId>
                </dependency>
        </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <!--
            If you enable the bind authentication handler unit tests,
            you need an LDAP infrastructure to test against.
            Create an ldap.properties file from the ldap.properties.sample
            template suitable for your environment.
            -->
            <exclude>**/*Bind*Tests.java</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

        <dependency>
            <groupId>org.springframework.webflow</groupId>
            <artifactId>spring-webflow</artifactId>
            <scope>compile</scope>
        </dependency>

                <dependency>
                        <groupId>org.springframework.ldap</groupId>
                        <artifactId>spring-ldap-core</artifactId>
                </dependency>

                <dependency>
                        <groupId>org.springframework.ldap</groupId>
                        <artifactId>spring-ldap-core-tiger</artifactId>
                </dependency>
        </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <!--
            If you enable the bind authentication handler unit tests,
            you need an LDAP infrastructure to test against.
            Create an ldap.properties file from the ldap.properties.sample
            template suitable for your environment.
            -->
            <exclude>**/*Bind*Tests.java</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>


I have no idea what kind of plugging I need to have in my pom.xml file to be 
able to build a working CAS-LDAP authentication. I have change  
deployerConfigContext.xml with  my LDAP environment.

 Maven2.2.1  in debug mode gives me this error:

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
com.thoughtworks.xstream.converters.ConversionException: Cannot construct 
org.apache.maven.plugin.w
ar.util.WebappStructure as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct 
org.apache.maven.plugin.war.util.WebappStructure as it does
not have a no-args constructor
cause-exception     : 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct 
org.apache.maven.plugin.war.util.WebappStructure as it does
not have a no-args constructor
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.plugin.war.util.WebappStructure
path                : /webapp-structure
line number         : 1


Thanks in advance for your help,




-- 
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

Reply via email to