Sure!

 

[r...@fl028centos proj]# cat pom.xml

<?xml version="1.0" encoding="UTF-8"?>

<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>edu.usf</groupId>

        <artifactId>local-cas</artifactId>

        <packaging>war</packaging>

        <version>1.0-SNAPSHOT</version>

 

        <build>

                <plugins>

                        <plugin>

                             <artifactId>maven-war-plugin</artifactId>

                             <configuration>

                                 <warName>idea-cas</warName>

                             </configuration>

                        </plugin>

                </plugins>

        </build>

 

        <dependencies>

                <dependency>

                        <groupId>org.jasig.cas</groupId>

 
<artifactId>cas-server-support-generic</artifactId>

                        <version>${cas.version}</version>

                        <type>jar</type>

                        <scope>runtime</scope>

                </dependency>

        </dependencies>

 

        <properties>

                <cas.version>3.4.2</cas.version>

        </properties>

 

        <repositories>

             <repository>

                  <id>ja-sig</id>

 
<url>http://oss.sonatype.org/content/repositories/releases/</url>

             </repository>

        </repositories>

</project>

 

 

v/r,

 

Rob Mckennon

 

From: Scott Battaglia [mailto:scott.battag...@gmail.com] 
Sent: Thursday, May 06, 2010 8:59 AM
To: cas-user@lists.jasig.org
Subject: Re: [cas-user] problem at step 2

 

Can you post your pom file? (expunging any proprietary info ;-))



On Thu, May 6, 2010 at 8:53 AM, McKennon, Robert
<robert.mcken...@idea.com> wrote:



-----Original Message-----
From: Marvin Addison [mailto:marvin.addi...@gmail.com]

Sent: Wednesday, May 05, 2010 6:19 PM
To: cas-user@lists.jasig.org
Subject: Re: [cas-user] problem at step 2

Your previous problem and the errors below suggest you're missing
arbitrary files:

> log4j:WARN No appenders could be found for logger
> (org.springframework.web.context.ContextLoader).
> log4j:WARN Please initialize the log4j system properly.

Above is caused by missing /WEB-INF/classes/log4j.properties.

> SafeContextLoaderListener:
> The Spring ContextLoaderListener we wrap threw on contextInitialized.
> But for our having caught this error, the web application context
would
> not have initialized.
> org.springframework.beans.factory.BeanDefinitionStoreException: Could
> not resolve bean definition resource pattern [/WEB-INF/
> spring-configuration/*.xml]; nested exception is
> java.io.FileNotFoundException:

Above seems to indicate missing XML files in
/WEB-INF/spring-configuration/.  Can you sketch out your build
process?  To be missing the files you've been missing suggests
something unusual.



Sure!

Create my proj directory, cd into that directory.
Create the pom.xml file (as outlined by the "Best practices"
walkthrough.)
Create the proj/src/main/webapp/WEB-INF directory
Copy the deployerConfigContext.xml file from the downloaded source to
the newly created proj/src/main/webapp/WEB-INF directory
Edit the deployerConfigContext.xml file to only accept one user and
password (as outlined in the walkthough).
Then the magic "mvn clean package"

[r...@fl028centos proj]# more build.out
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - edu.usf:local-cas:war:1.0-SNAPSHOT
[INFO]    task-segment: [clean, package]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /root/proj/src/main/resources
Downloading:
http://oss.sonatype.org/content/repositories/releases//org/opensaml/open
saml/1.1b/opensaml-1.1b.pom
<http://oss.sonatype.org/content/repositories/releases/org/opensaml/open
%0Asaml/1.1b/opensaml-1.1b.pom> 
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in
repository ja-sig
(http://oss.sonatype.org/content/repositories/releases/)
Downloading:
http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1
.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in
repository jasig-repository (http://developer.ja-sig.org/maven2)
Downloading:
http://repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1
.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in
repository jboss (http://repository.jboss.com/maven2)
Downloading:
http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.p
om
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in
repository central (http://repo1.maven.org/maven2)
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /root/proj/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[local-cas] in
[/root/proj/target/local-cas-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources[/root/proj/src/main/webapp]
[INFO] Webapp assembled in[1134 msecs]
[INFO] Building war: /root/proj/target/idea-cas.war
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling WAR: webxml attribute is required (or
pre-existing WEB-INF/web.xml if executing in update mode)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 44 seconds
[INFO] Finished at: Thu May 06 08:46:38 EDT 2010
[INFO] Final Memory: 13M/24M
[INFO]
------------------------------------------------------------------------

This is where I'm not quite sure what to do... do I touch (create a
blank web.xml file), or should I copy one from somewhere else? (if so,
from where)?  And of course, why didn't it complain about the web.xml
file when I did the first part of the walkthrough?

v/r,

Rob McKennon



--
You are currently subscribed to cas-user@lists.jasig.org as:
scott.battag...@gmail.com
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user

 

-- 

You are currently subscribed to cas-user@lists.jasig.org as:
robert.mcken...@idea.com

To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to